package com.apollographql.apollo.api;

import com.kt.Metadata;
import com.kt.jvm.functions.Function1;
import com.kt.jvm.internal.Intrinsics;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001J\u0014\u0010\u0003\u001a\u00020\u00022\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016J\u0014\u0010\u0006\u001a\u0006\u0012\u0002\b\u00030\u00052\u0006\u0010\u0004\u001a\u00020\u0002H\u0016¨\u0006\u0007"}, d2 = {"com/apollographql/apollo/api/ScalarTypeAdapters$Companion$createDefaultScalarTypeAdapter$adapter$1", "Lcom/apollographql/apollo/api/CustomTypeAdapter;", "", "decode", "value", "Lcom/apollographql/apollo/api/CustomTypeValue;", "encode", "apollo-api"}, k = 1, mv = {1, 4, 0})
/* compiled from: ScalarTypeAdapters.kt */
public final class ScalarTypeAdapters$Companion$createDefaultScalarTypeAdapter$adapter$1 implements CustomTypeAdapter<Object> {
    final /* synthetic */ Function1 $decode;

    ScalarTypeAdapters$Companion$createDefaultScalarTypeAdapter$adapter$1(Function1 $captured_local_variable$0) {
        this.$decode = $captured_local_variable$0;
    }

    @Override // com.apollographql.apollo.api.CustomTypeAdapter
    public Object decode(CustomTypeValue<?> customTypeValue) {
        Intrinsics.checkParameterIsNotNull(customTypeValue, "value");
        return this.$decode.invoke((Comparable) customTypeValue);
    }

    @Override // com.apollographql.apollo.api.CustomTypeAdapter
    public CustomTypeValue<?> encode(Object value) {
        Intrinsics.checkParameterIsNotNull(value, "value");
        return CustomTypeValue.Companion.fromRawValue(value);
    }
}
